public class prtoctthread  {
    public static void main(String[] args) {
        god god=new god();
        yuo you=new yuo();

        Thread thread=new Thread(god);
        thread.setDaemon(true);

        thread.start();

        new Thread(you).start();
    }
}

class  god implements Runnable{
    @Override
    public void run() {
        while (true){
            System.out.println("god like");
        }
    }
}

class yuo implements  Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 365; i++) {
            System.out.println("life");
        }
    }
}